$(function () {
    $("#head").load("/html/head.html");
    $("#foot").load("/html/foot.html");
    seletAboutUs();
})

function seletAboutUs() {
    let data = myAjax("/about us","","get");
    let model = data.model;
    let list = data.list;
    $("#bgimg").css("background-image","url("+model.bgimg+")");
    $("#title").text(model.title);
    $("#content1").text(model.content);
    $("#content2").text(model.content);

    $("#main").attr("href",list[0].href);
    $("#main").text(list[0].title);
    $("#now").attr("href",list[1].href);
    $("#now").text(list[1].title);
}

